package bridge.switchs;

import bridge.lights.ILight;

/**
 * 开关顶层类
 *
 * @author laigl 2017年7月12日
 *
 */
public class BaseSwitch {

	protected ILight light;

	public BaseSwitch(ILight light) {
		this.light = light;
	}

	/**
	 * 开灯
	 */
	public final void makeLight() {
		this.light.electricConnected();
		this.light.light();
		this.light.electricClosed();
	}

}
